package com.cskaoyan.controller.mallController;

import com.cskaoyan.module.bean.BaseRespVo;
import com.cskaoyan.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
public class RegionController {

    @Autowired
    RegionService regionService;

    @RequestMapping("region/list")
    public BaseRespVo list() {
        BaseRespVo BaseRespVo = regionService.query();
        return BaseRespVo;
    }
}
